import globalVariable from './globalVariable'

export function goRegisterAndBack(isRedirect: boolean = false, backUrl: string = '') {
    console.log('backUrl', backUrl)
    globalVariable.backUrl = backUrl
    const url = '/pages/login/login'
    isRedirect
        ? uni.redirectTo({
            url,
        })
        : uni.navigateTo({
            url,
        })
}
